.chat {
    width: 375px;
    height: 608px;
    float: left;
    background-color: #f5f5f5;
    position: relative;
    padding: 56px 0 52px;
    box-sizing: border-box;
    background-image: url(chat_bg.jpg);
    background-size: cover;
}
.chat .title {
    width: 100%;
    height: 56px;
    line-height: 56px;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;
    text-align: center;
    font-size: 18px;
    background-color: #3b3a3f;
    color: #fff;
}
.chat .text {
    width: 100%;
    height: 100%;
    padding: 0 12px 10px;
    box-sizing: border-box;
    overflow-x: hidden;
    overflow-y: auto;
}
.chat .text .t1 {
    padding-left: 52px;
    float: left;
}
.chat .text .t2 {
    padding-right: 52px;
    float: right;
}
.chat .text li {
    width: 90%;
    position: relative;
    margin-top: 18px;
    box-sizing: border-box;
}
ul, li {
    padding: 0;
    margin: 0;
    list-style: none;
}

.chat .text .t1 img {
    left: 0;
}
.chat .text .t2 img {
    right: 0;
}
.chat .text li img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    position: absolute;
    top: 0;
}
img {
    border: 0px;
}
.chat .text .t1 .txt {
    float: left;
    background-color: #fff;
}
.chat .text .t2 .txt {
    float: right;
    background-color: #98e855;
}
.chat .text .txt {
    min-height: 40px;
    font-size: 15px;
    line-height: 24px;
    padding: 8px;
    box-sizing: border-box;
    border-radius: 6px;
    border: 1px solid #d8d8d8;
    color: #333;
}
.chat .cont {
    width: 100%;
    height: 52px;
    position: absolute;
    left: 0;
    bottom: 0px;
    z-index: 10;
    background-color: #ebebeb;
    padding: 8px 76px 8px 12px;
    box-sizing: border-box;
    box-shadow: 0 -2px 5px #d8d8d8;
}
.chat .cont .inp {
    width: 100%;
    height: 36px;
    margin: 0;
    padding: 5px 10px;
    border: 1px solid #d8d8d8;
    color: #333;
    box-sizing: border-box;
    background-color: #fff;
    border-radius: 18px;
}
.chat .cont .send {
    width: 54px;
    height: 34px;
    line-height: 34px;
    text-align: center;
    position: absolute;
    right: 12px;
    top: 9px;
    color: #fff;
    background-color: #02cb0b;
}
a {
    text-decoration: none;
    color: #333;
}